Component({
  properties: {
    filterLayout: {
      type: Array,
      value: []
    },
  },
  data: {},
  methods: {
    onSearch(e) {
      this.triggerEvent("search", e.detail);
    }, getFilter() {
      return this.selectComponent(".filter").getFilter();
    },
    filterChange(e) {
      this.triggerEvent("filter-change-toggle", e.detail)
    },
    onDropdownToggle(e) {
      this.triggerEvent('filter-dropdown-toggle', {hasFilterDropdownShown: e.detail.hasDropdownShown})
    }
  },
  lifetimes: {
    attached() {
      // console.log(this.properties['filterLayout'])
    }
  }
})
